package com.landinfo.service.dto;


import javax.persistence.Lob;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Objects;

/**
 * A DTO for the BookMark entity.
 */
public class BookMarkDTO implements Serializable {

    private String id;

    @NotNull
    @Size(max = 50)
    private String bmname;

    @NotNull
    private Double bmxmin;

    @NotNull
    private Double bmxmax;

    @NotNull
    private Double bmymin;

    @NotNull
    private Double bmymax;

    @NotNull
    private Integer bmspatialReference;

    private String remark;

    @Lob
    private String markContent;

    private String userId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getBmname() {
        return bmname;
    }

    public void setBmname(String bmname) {
        this.bmname = bmname;
    }
    public Double getBmxmin() {
        return bmxmin;
    }

    public void setBmxmin(Double bmxmin) {
        this.bmxmin = bmxmin;
    }
    public Double getBmxmax() {
        return bmxmax;
    }

    public void setBmxmax(Double bmxmax) {
        this.bmxmax = bmxmax;
    }
    public Double getBmymin() {
        return bmymin;
    }

    public void setBmymin(Double bmymin) {
        this.bmymin = bmymin;
    }
    public Double getBmymax() {
        return bmymax;
    }

    public void setBmymax(Double bmymax) {
        this.bmymax = bmymax;
    }
    public Integer getBmspatialReference() {
        return bmspatialReference;
    }

    public void setBmspatialReference(Integer bmspatialReference) {
        this.bmspatialReference = bmspatialReference;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        BookMarkDTO bookMarkDTO = (BookMarkDTO) o;

        if ( ! Objects.equals(id, bookMarkDTO.id)) { return false; }

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "BookMarkDTO{" +
            "id=" + id +
            ", bmname='" + bmname + "'" +
            ", bmxmin='" + bmxmin + "'" +
            ", bmxmax='" + bmxmax + "'" +
            ", bmymin='" + bmymin + "'" +
            ", bmymax='" + bmymax + "'" +
            ", markContent='" + getMarkContent() + "'" +
            ", bmspatialReference='" + bmspatialReference + "'" +
            '}';
    }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

    public String getMarkContent() {
        return markContent;
    }

    public void setMarkContent(String markContent) {
        this.markContent = markContent;
    }
}
